<extend name="common:base" />
<block name="content">
    <link rel="stylesheet" href="{:C('__STATIC__')}{$theme}/Static/{:C('css')}/czzx.css" />
    <div class="banx-a">
        <div class="a-1">
            <div class="cz-img">
                <notempty name="avatar['avatar']">
                    <img name="head" src="{$avatar['avatar']}"/>
                    <else/>
                    <img class="photo" name="head" src="./Public/images/default.png"/>
                </notempty>
            </div>
            <div class="cz-name">
                <p><a>{$userinfo['agent_name']}</a></p>
                <p><a>{$userinfo['mobile']}</a></p>
            </div>
            <if condition="session('is_agent') eq 1">
                <p class="congzhi"><a href="{:U('Recharge/rechargepage')}">充值</a></p>
                <else/>
                <p class="congzhi"><a href="{:U('Recharge/normal_recharge')}">充值</a></p>
            </if>
        </div>

        <if condition="$userinfo['is_agent'] eq 1">
            <div class="recharge_audit">
                <a class="a3p" href="{:U('Recharge/rechargeaudit')}">
                    下级充值申请审核<img src="{:C('__STATIC__')}{$theme}/Static/img/jt.png">
                </a>
            </div>
        </if>

        <div class="a-3">
            <div class="aa-3">
                <a class="a3p" >
                    预存款
                    <span style="float:right">{$userinfo['money']}元</span>
                </a>
            </div>
            <div class="aa-3 aaa">
                <a class="a3p" href="{:U('Recharge/consumerecord')}">
                    我的消费记录
                    <img src="{:C('__STATIC__')}{$theme}/Static/img/jt.png">
                </a>
            </div>
            <div class="aa-3">
                <a class="a3p" href="{:U('Recharge/rechargerecord')}">
                    我的充值记录
                    <img src="{:C('__STATIC__')}{$theme}/Static/img/jt.png">
                </a>
            </div>
        </div>
    </div>
    <script type="text/javascript">
            function goback() {
                var prevUrl = document.referrer;
                window.location.href = prevUrl;
            }
    </script>
</block>
